//
//  KKLineChartView.h
//  KKBarViewDemo
//
//  Created by liaozhenming on 16/3/26.
//  Copyright © 2016年 liaozhenming. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol KKLineChartViewDataSource;
@interface KKLineChartView : UIView

@property (nonatomic, strong) UIScrollView *kk_contentScrollView;

@property (nonatomic, weak) id<KKLineChartViewDataSource> dataSource;

//  更新数据
- (void)reloadData;

@end

@protocol KKLineChartViewDataSource <NSObject>
@required

//  横轴上的值array
- (NSArray*)valuesOfLateralAxisInLineChartView:(KKLineChartView *)chartView;
@optional

//  横轴上的值Title
- (NSString *)chartView:(KKLineChartView *)chartView cellTitleAtIndex:(NSInteger)index;

- (NSString *)chartView:(KKLineChartView *)chartView lateralAxisTitleAtIndex:(NSInteger)index;

@end
